// 公用定位
import {LBS_KEY} from '@/api/my-account.js'
const qqLbs = function() {
  return new Promise((resolve, reject) => {
    var geolocation = new qq.maps.Geolocation(LBS_KEY, "myapp");
    var options = {timeout: 9000};
    geolocation.getLocation(
      position => resolve(position.city),
      err => resolve('昆明市'),
      options
    );
  })
}

export {qqLbs};